package com.study.prop.other;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "auth")
@Data
public class UserYml {

    private List<User> user;

    @Data
    public static class User {
        private String name;

        private Integer age;

        private String sex;
    }
}
